package com.laijiale.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * @author laijiale
 * @date 2024年08月13日 11:09
 */
@Schema(description = "修改我的密码DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmpUpdatePasswordDTO implements Serializable {
    @Null(message = "主键必须为空")
    @Schema(description = "主键")
    private Long id;
    @NotEmpty(message = "旧密码不能为空")
    @Schema(description = "旧密码")
    private String oldPassword;
    @NotEmpty(message = "新密码不能为空")
    @Schema(description = "新密码")
    private String newPassword;


}
